package com.prj.ufdm.cloud.ms.auth.dao;

import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import com.prj.ufdm.cloud.ms.core.dao.BaseDao;
import com.prj.ufdm.cloud.ms.auth.model.SysRole;

@Mapper
public interface SysRoleDao extends BaseDao<SysRole> {

	/**
	 * 描述: 根据用户ID查询用户角色
	 * @auther 胡义振
	 * @param userId
	 * @return
	 * @throws Exception
	 */
	public List<SysRole> selectRoleListByUserId(String userId) throws Exception;
	
	/**
	 * 检查角色名是否存在
	 * 
	 * @param sysRole
	 * @return
	 */
	public Integer selectSysRoleForCheckRoleName(SysRole sysRole);

}
